package com.bcu.team.comment.mapper;

import com.bcu.team.comment.entity.Collection;
import com.bcu.team.comment.entity.Message;

import java.util.List;

public interface CollectionMapper {
    int deleteByPrimaryKey(Integer collectionId);

    int insert(Collection record);

    int insertSelective(Collection record);

    Collection selectByPrimaryKey(Integer collectionId);

    int updateByPrimaryKeySelective(Collection record);

    int updateByPrimaryKey(Collection record);

    List<Collection> getCollectionsByUserId(Integer userId);

    Collection isUserCollectedSong(Integer songId, Integer userId);

    int deleteBySongIdAndUserId(Integer songId, Integer userId);
}